import requests
import asyncio


url = 'https://blog.csdn.net/?spm=1000.2115.3001.4477'



def crawl(url):
    pass


def parse(html):
    pass


async def save():
    with open('a.html', 'w') as f:
        f.write('<html>haha</html>')
        await asyncio.sleep(1)
        print('写入')

if __name__ == '__main__':
    task = save()
    asyncio.get_event_loop().run_until_complete(task)
    # save()
    print('结束')